<template>
	<view class="page flex flex-direction">
		<view class="flex-1" />
		<view class="flex align-center justify-center padding-tb-lg">
			<view class="bg-red rounded-circle">
				<uni-icons type="closeempty" size="70" color="var(--xl-white)"></uni-icons>
			</view>
		</view>
		<view class="margin-top-lg">
			<view class="text-center text-lg text-bold">错误码：{{ code }}</view>
			<view class="text-sm text-center text-bold margin-top">{{ message }}</view>
		</view>
		<view class="flex-1" />
		<view class="margin-top-lg padding-lr-lg">
			<view class="bg-red radius-lg padding-lr-lg padding-tb text-bold text-center text-sm"
				 @tap="$utils.$page.re('/pages/index/index')">返回首页</view>
		</view>
		<view class="flex-1" />
	</view>
</template>

<script>
export default{
    data(){
        return {
            message:'',
            code:'',
        };
    },
    onLoad(options){
        this.message = options.msg;
        this.code = options.errcode;
    }
}
</script>

<style lang="scss" scoped>
.page {
	height: calc(100vh - var(--window-top));
}
.flex-1{
    flex:1;
}
</style>
